package org.hackystat.iw.projectoverviewer.page.projects;

import org.apache.wicket.util.tester.WicketTester;
import org.hackystat.iw.projectoverviewer.ProjectOverviewerApplication;
import org.hackystat.iw.projectoverviewer.test.ProjectOverviewerTestHelper;
import org.junit.Test;

/**
 * Test the projects page.
 * 
 * @author Jianfei Liao
 * @author Nathan Britton
 */
public class TestProjectsPage extends ProjectOverviewerTestHelper {

  /**
   * Tests of going to the home page.
   */
  @Test
  public void testProjectsPage() { //NOPMD
    ProjectOverviewerApplication testApp = new ProjectOverviewerApplication(getTestProperties());
    WicketTester tester = new WicketTester(testApp);
    
    tester.startPage(ProjectsPage.class);
    
    tester.assertRenderedPage(ProjectsPage.class);
  }
  
}
